include(default)
target_host=aarch64-linux-gnu
# 指定交叉编译器安装位置
compiler_install_prefix=/opt/gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu
# 指定交叉编译器bin位置
compiler_prefix=$compiler_install_prefix/bin/
# 使用添加在PATH的编译器
#compiler_prefix=
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=8
os=Linux
#[tool_requires]
[conf]
tools.env.virtualenv:auto_use=True
tools.cmake.cmaketoolchain:system_processor=aarch64
tools.build:compiler_executables={"c":"$compiler_prefix$target_host-gcc","cpp":"$compiler_prefix$target_host-g++","asm":"$compiler_prefix$target_host-gcc"}
tools.build:sysroot=$compiler_install_prefix/aarch64-linux-gnu/libc
#tools.build:sysroot=/
[buildenv]
CHOST=$compiler_prefix$target_host
AR=$compiler_prefix$target_host-ar
AS=$compiler_prefix$target_host-gcc
RANLIB=$compiler_prefix$target_host-ranlib
CC=$compiler_prefix$target_host-gcc
CXX=$compiler_prefix$target_host-g++
LD=$compiler_prefix$target_host-ld
STRIP=$compiler_prefix$target_host-strip
# 用于向 ./conan/cmake/aarch64-linux-gnu.toolchain.cmake 传递交叉编译器位置
#CROSS_COMPILER_PREFIX=$compiler_prefix
#########################################################################################
# 指定./conan/cmake/aarch64-linux-gnu.toolchain.cmake 为cmake 工具链文件                   #
#########################################################################################
#{% set toolchain = os.path.join(profile_dir, "..","cmake","aarch64-linux-gnu.toolchain.cmake") %}
#CONAN_CMAKE_TOOLCHAIN_FILE={{ toolchain }}
#CONAN_CMAKE_TOOLCHAIN_FILE=$PROFILE_DIR/../cmake/aarch64-linux-gnu.toolchain.cmake
#CONAN_CMAKE_GENERATOR="Unix Makefiles"
#CONAN_CMAKE_SYSTEM_PROCESSOR=aarch64
